import MarkNav from 'markdown-navbar'
import 'markdown-navbar/dist/navbar.css'
import { useState, useEffect } from 'react';
import { Affix } from 'antd';
import IndexStyle from '../index.less'
export default function IndexPage() {
  const [value, setValue] = useState('')
  return (
<Affix offsetTop={10}>
    <div className={IndexStyle.right} style={{width:'300px'}}>
        <MarkNav
          className="article-menu"
          source={value}				//markdown书写的文本内容,数据源
        />
      </div></Affix>
  );
}
